﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucSearchCustomer.ascx.cs"
    Inherits="UserControl_ucSearch" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<div class=" block">
</div>
<link href="file:///E:/MPR/Project/MPR.Solution/MPR.Website/css/content.css" rel="stylesheet"
    type="text/css" />
<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                
                <h2 class="PostHeaderIcon-wrapper">
                    CUSTOMER SEARCH</h2>
                <div class="PostHeaderIcons metadata-icons">
                </div>
                <div class="PostContent">
                    <div class="article">
                        <span class="print-link"></span>
                        <table id="table2" width="600px">
                            <tr>
                                <td style="text-align: right">
                                    FirstName
                                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="inp-form"></asp:TextBox>
                                </td>
                                <td style="text-align: right">
                                    Last Name&nbsp;
                                    <asp:TextBox ID="txtLName" runat="server" CssClass="inp-form"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                   Company Name
                                    <asp:TextBox ID="txtCompany" runat="server" CssClass="inp-form"></asp:TextBox>
                                  
                                </td>
                                <td style="text-align: right">
                                    Mobile &nbsp;
                                    <asp:TextBox ID="txtMobi" runat="server" CssClass="inp-form"></asp:TextBox>
                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                                        TargetControlID="txtMobi">
                                    </asp:FilteredTextBoxExtender>
                                </td>
                            </tr>
                            <%--<tr>
                        <td style="text-align: right">
                            Company Name
                            <asp:TextBox ID="txtCompName" CssClass="inp-form" runat="server"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>--%>
                        </table>
                        <div class="clearContent" style="text-align: center">
                            <asp:Label ID="lblResult" runat="server" Style="color: Red" />
                        </div>
                    </div>
                </div>
                <table id="table0" align="center">
                    <tr>
                        <td>
                            <asp:Button ID="btnSearch" runat="server" CssClass="button_all" OnClick="btnSearch_Click"
                                Text="SEARCH" />
                        </td>
                        <td>
                            <asp:Button ID="btnClearSearch" runat="server" CssClass="button_all" OnClick="btnClearSearch_Click"
                                Text="CLEAR SEARCH" />
                        </td>
                        <td>
                            <asp:Button ID="btnAddNew" runat="server" CssClass="button_all" Text="NEW CUSTOMER"
                                OnClick="btnAddNew_Click" />
                        </td>
                        <%--<td>
                                        <asp:Button ID="btnClose" runat="server" CssClass="button_all" 
                                            OnClick="btnClose_Click" Text="CLOSE FORM" />
                                    </td>--%>
                    </tr>
                </table>
                 <asp:Panel ID="panel" runat="server" Height="400px" ScrollBars="Auto">
                <asp:GridView ID="grdCustomerList" runat="server"  AutoGenerateColumns="False"
                    CssClass="grd"  OnRowDataBound="grdCustomerList_RowDataBound"
                    Width="100%" >
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="CustomerIndex" DataNavigateUrlFormatString="~/Admin/Customer.aspx?id={0}"
                            DataTextField="CustomerFullname" HeaderText="Full Name" HeaderStyle-Width="150px" />
                        <asp:TemplateField HeaderText="Company Name">
                            <ItemTemplate>
                                <%# Eval("Companyname")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="100px" HeaderText="Phone Moblie">
                            <ItemTemplate>
                                <%# Eval("phonemobile")%>
                            </ItemTemplate>
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="Center" Width="70px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Email Address">
                            <ItemTemplate>
                                <%# Eval("Emailaddress")%>
                            </ItemTemplate>
                            <HeaderStyle Width="150px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-Width="150px" HeaderText="Prefer Contact Method">
                            <ItemTemplate>
                                <asp:Label ID="lbMethod" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="100px" />
                            <ItemStyle HorizontalAlign="center" VerticalAlign="Middle" Width="90" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle CssClass="grdHeader" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle CssClass="grdAlternateRow" />
                    <PagerSettings PageButtonCount="6" />
                    <RowStyle CssClass="grdRow" />
                </asp:GridView>
                </asp:Panel>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
            <div class="cleared">
            </div>
        </div>
    </div>
</div>
